package cn.lds.health.service;

import cn.lds.health.dto.AppointMentRecordCondition;
import cn.lds.health.dto.Pager;
import cn.lds.health.dto.ResultDTO;
import cn.lds.health.entity.AppointmentRecord;
import cn.lds.health.exception.SysException;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName AppointmentRecordService
 * @Description TODO
 * @Author Christopher
 * @Date 2023/8/9 10:08
 * @Version 1.0
 **/

public interface AppointmentRecordService {
	
	/**
	 * 根据条件查询预约记录
	 * @param condition
	 * @return
	 */
	ResultDTO<List<AppointmentRecord>> selectAppointMentRecordByCondition(@Param("condition") AppointMentRecordCondition condition, @Param("pager") Pager pager) throws SysException;
	
	/**
	 * 添加新预约
	 * @param record
	 * @return
	 */
	ResultDTO addAppointment(AppointmentRecord record) throws SysException;
	
	
	
	ResultDTO confirmAppoint(Integer id) throws SysException;
	/**
	 * 取消预约
	 * @param id
	 * @return
	 */
	ResultDTO cancelAppoint(Integer id) throws SysException;
}